package com.zjitc.config;

import com.zjitc.obj.Teacher;
import com.zjitc.obj.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Import(JavaConfigDome1.class)

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/6 16:39
 * @description:
 */
@Configuration

public class JavaConfigDome2 {
@Bean(value = "t1")
  public Teacher teacher(User user)
{
  return new Teacher(user);
}

}
